import { get, gets, post, posted,axioed } from "./request";
// export const login = (bcid) => posted("login",bcid,{'Content-Type': 'application/x-www-form-urlencoded'}); // 登录

export const getUserName = (p1) => get("platform/management/tool/selectUNameByUser", p1); // 根据用户名获取姓名

//首页  frontPage/selectFutureExam
// export const underExam = (p1) => get("platform/management/frontPage/selectStartExam", p1); // 查询正在考试信息   
export const underExam = (p1) => get("platform/management/frontPage/selectStartExam", p1); // 查询正在考试信息   frontPage/selectStartExam 
export const futureExam = (p1) => get("platform/management/frontPage/selectFutureExam", p1); // 查询未考试信息 
export const startTrain = (p1) => get("platform/management/frontPage/selectStartTrainMode", p1); // 查询正在培训信息 

export const statistics = (p1) => get("platform/management/frontPage/Statistics", p1); // 查询统计信息
export const statuExam = (p1) => get("platform/management/frontPage/statisticsExam", p1); // 查询考试信息--总计  
export const statuTraining = (p1) => get("platform/management/frontPage/statisticsTrainMode", p1); // 查询培训信息--总计  
export const statuEquipment = (p1) => get("platform/management/frontPage/EquipmentStatistics", p1); // 查询设备信息  
export const statuRooms = (p1) => get("platform/management/frontPage/StatisticsRooms", p1); // 查询房间信息 
export const MonthData = (p1) => get("platform/management/frontPage/statisticsMonth", p1); // 查询月份数据   
export const YearData = (p1) => get("platform/management/frontPage/statisticsYear", p1); // 查询年数据   



export const Audio = (p1) => get("voice/main", p1); // 到场考生列表





export const api1 = (p1) => get("platform/management/tool/selectCandidateSeatByExam", p1); // 到场考生列表
export const ksks = (dd) => get("platform/identify/faceIdentify/startExam",dd); // 教室端开始考试/faceIdentify/startExam
export const stopExam = (dd) => get("platform/identify/faceIdentify/stopExam",dd); // 教室端结束考试/faceIdentify/startExam
export const pushDri = (dd) => posted("platform/veriface/face/socket/pushDriving",dd,{'Content-Type': 'application/json'}); // 图像下发/
export const pushDris = (dd) => posted("platform/identify/NetSDK/pushDriving",dd,{'Content-Type': 'application/json'}); // 图像下发2/NetSDK/pushDriving
export const startExamTest = (dd)=>get("platform/identify/faceIdentify/startExamTest",dd)


export const examManage = (bcid) => get("platform/management/examManage/getStudent",bcid); // a
export const addnation = (form) => post("platform/management/examManage/AddExamination",form); // 添加考试 提交
export const addTrain = (form) => axioed("platform/management/trainMode/addTrain",form,"post","form"); // 添加培训 
export const selectexam = (pali) => post("platform/management/examManage/SelectExamination",pali); // 考试列表 table
export const ordermsg = (bcid) => get("platform/management/personnelManage/selectManageUsersSeat",bcid); // 查询座次信息
export const getBatch = (batch) => get("platform/management/examManage/getBatch",batch); // 查询批次列表
export const uploadImage = (pali) => post("platform/management/personnelManage/uploadImageTxt",pali); // 考试列表 table
//export const equipment = (batch) => get("/tool/selectEquipment",batch); // 查询考试设备名列表
export const queryRoom = (batch) => get("platform/management/tool/selectRoom",batch); // 查询班级列表
export const querytreeFloor = () => get("platform/management/tool/treeFloor"); // 查询楼,教室,二级列表.
export const quSelecteq = (lis) => get("platform/management/tool/selectEqByRoom",lis); // 查询班级机器列表
export const kstatus= (pali) => gets("platform/management/examManage/getPeopleOnExam",pali); // 考试流程状态获取 
export const queryeroom = (bcid) => posted("platform/management/examManage/selectExaminationRoom",bcid,{'Content-Type': 'application/json'}); //根据班级id获取考试信息
export const timejudeg= (pali) => get("platform/management/examManage/timeJudgment",pali); // 判断考试时间是否可用
export const deleteExam= (pali) => get("platform/management/examManage/deleteExam",pali); // 删除考试
export const queryTime = (pali) => posted("platform/management/examManage/selectExamTimeByRoom",pali,{'Content-Type': 'application/json'}); // 查询考试时间

// 用户 / 学生 管理   
export const queryStudentInfo= (pali) => get("platform/management/personnelManage/selectStudent",pali); // 查询学生列表
export const changePassword = (pali) => posted("platform/management/personnelManage/updateUserPassword",pali,{'Content-Type': 'application/json'}); // 查询考试时间
export const messageList = (pali) => posted("platform/management/tool/selectInformation",pali,{'Content-Type': 'application/json'}); // 消息中心 查询消息
export const updeteMessage = (pali) => posted("platform/management/tool/updateInformation",pali,{'Content-Type': 'application/json'}); // 更改消息状态





//设备管理页  
export const queryequipment= (pali) => get("platform/management/CameraManage/selectCamera",pali); // 设备列表
export const addCamera= (pali) => posted("platform/management/CameraManage/addCamera",pali,{'Content-Type': 'application/x-www-form-urlencoded'}); // 添加设备(摄像头)信息
export const treeEq= (pali) => get("platform/management/tool/treeEq",pali); // 查询树形结构---教学楼--房间--设备
export const BgAddCamera= (pali) => posted("platform/management/CameraManage/updateCamera",pali,{'Content-Type': 'application/x-www-form-urlencoded'}); // 编辑设备(摄像头)信息
export const deleteCamera= (pali) => get("platform/management/CameraManage/deleteCamera",pali); // 删除设备
export const queryCamerStatus= (pali) => get("platform/management/CameraManage/selectCameraStatus",pali); // 获取设备状态

// 系统评分列表查询
// export const queryksFraction= (pali) => get("platform/management/scoreManage/selectExamFraction",pali); // 查询考试学生分数信息
export const queryFraction= (pali) => get("platform/management/scoreManage/selectFraction",pali); // 查询学生分数信息 -- 整合
export const queryTestInfo= (pali) => get("platform/management/scoreManage/selectExamByTeacher",pali); // 查询考试信息
export const queryImage= (pali) => get("platform/management/scoreManage/selectImage",pali); // 查看图片
export const gradeChange = (pali) => posted("platform/management/scoreManage/updateExamScore",pali,{'Content-Type': 'application/json'}); // 分数修正
export const updatePostStatus = (pali) => posted("platform/management/scoreManage/updatePostStatus",pali,{'Content-Type': 'application/json'}); // 修改发布状态

//用户管理接口 platform/management
export const queryManageUser= (pali) => get("platform/management/personnelManage/selectManageUsers",pali); // 查询所有用户信息
export const addUsers = (form) => posted("platform/management/personnelManage/insertManageUsers",form,{'Content-Type': 'application/json'}); // 添加用户
export const updateUsers = (form) => posted("platform/management/personnelManage/updateManageUsers",form,{'Content-Type': 'application/json'}); // 编辑/修改用户信息 
export const deleteUser= (pali) => get("platform/management/personnelManage/deleteManageUsers",pali); // 查询所有用户信息
export const verifyUser= (pali) => get("platform/management/personnelManage/verificationUsername",pali); // 验证用户是否存在

// 操作日志 platform/management/
export const userLog = (dd) => posted("platform/management/tool/selectUserLog",dd,{'Content-Type': 'application/json'}); // 图像下发2/NetSDK/pushDriving

 
export const addBatch = (bcid) => posted("platform/management/personnelManage/addBatch",bcid,{'Content-Type': 'application/x-www-form-urlencoded'}); // 添加批次
export const queryinfor = (bcid) => posted("platform/management/examManage/SelectExamination",bcid,{'Content-Type': 'application/json'}); // 获取考试列表
// export const uploadImage = (bcid) => posted("/personnelManage/uploadImageTxt",bcid,{'Content-Type': 'application/x-www-form-urlencoded'}); // 添加批次

// export const api2 = p2 => get('https://xxx/v5/weather?city=taian&key=1b47b16e4aa545eaa55a66f859ac0089', p2)

